package com.example.bcscb.mapper;

import com.example.bcscb.aop.TargetDataSource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author bc
 * @Description:
 * @date 2024/03/19
 */
@Mapper
public interface UserMapper {

    @TargetDataSource(name = "ds1")
    @Transactional(rollbackFor = Exception.class)
    @Update("UPDATE t_user SET nick_name  = \"bc\" WHERE id = '1'")
    void update();
}
